import request from "@/utils/request"

export const initIndexListInfoDataApi = () =>{
    return request({
        url: '/product/getIndexProductListInfo',
        method: 'get'
    })

}

// 获取产品列表和分页信息
export const getProductListAndPageApi = (productType,curPage,pageSize) =>{
    return request({
        url: '/product/getProductListAndPageInfo',
        method: 'get',
        params: {
            productType,
            curPage,
            pageSize
        }
    })

}


/*查询某个产品的详情和投资记录*/
export const getProductDetailAndBidApi = (id) =>{
    return request({
        url: '/product/getProductDetailAndBid/'+id,
        method: 'get',
    })

}
